package com.example.test_20210601_Fruits;

public class TestMain {

    public static void main(String[] args) {

        new AnimalsFactory.Dog().createAnimal().getName();
        new AnimalsFactory.Dog().createAnimal().getVoies();

        AnimalsFactory cat = new AnimalsFactory.Cat();
        Animals animal = cat.createAnimal();
        animal.getName();
        animal.getVoies();
    }
}
